package creadorEscenarios;

import java.awt.Color;

import creadorEscenarios.Figura.TipoFigura;


public class Linea extends Figura{

	protected int inix, iniy, finx, finy;
	boolean relleno;

	public Linea(int inix, int iniy, int finx, int finy, Color c, boolean relleno, TipoFigura a) {
		super(a);
		this.inix = inix;
		this.iniy = iniy;
		this.finx = finx;
		this.finy = finy;
		this.color=c;
		this.relleno=relleno;
	}

	public Linea() {
		super(TipoFigura.Linea);
		inix=0;
		iniy=0;
		finx=0;
		finy=0;
	}

	public Linea(int inix, int iniy, int finx, int finy) {
		super(TipoFigura.Linea);
		this.inix = inix;
		this.iniy = iniy;
		this.finx = finx;
		this.finy = finy;
		this.color=Color.GREEN;
	}

	public Linea(int inix, int iniy, int x, int y, Color c, TipoFigura linea) {
		super(linea);
		this.inix = inix;
		this.iniy = iniy;
		this.finx = x;
		this.finy = y;
		this.color=c;
	}

	public int getInix() {
		return inix;
	}

	public void setInix(int inix) {
		this.inix = inix;
	}

	public int getIniy() {
		return iniy;
	}

	public void setIniy(int iniy) {
		this.iniy = iniy;
	}

	public int getFinx() {
		return finx;
	}

	public void setFinx(int finx) {
		this.finx = finx;
	}

	public int getFiny() {
		return finy;
	}

	public void setFiny(int finy) {
		this.finy = finy;
	}
	
	public void setColor(Color c){
		this.color=c;
	}
	
	public Color getColor(){
		return color;
	}
	
	public boolean isRelleno(){
		return relleno;
	}
}
